
if cd "$(dirname "$0")"; then
  :
else
  exit 1
fi
dir_now=$(pwd)

git pull

#不知道会不会生效--start--
if which virtualenv; then
  :;
else
  pip install virtualenv;virtualenv venv
fi
#不知道会不会生效--end--
if [ -f venv/bin/activate ]; then
  source venv/bin/activate;
else
  virtualenv venv;source venv/bin/activate;
fi
pip install -i https://mirrors.bfsu.edu.cn/pypi/web/simple -r "$dir_now"/requirements.txt
python3 "$dir_now"/main.py
#python3 "$dir_now"/cucn_iptv.py
